package com.woniuxy.dao;

import com.woniuxy.pojo.SysUser;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    /**
     * 通过loginname属性查询SysUser对象
     * @param loginname:登录名称
     * @return
     */
    SysUser getUserByLoginName(String loginname);

    /**
     * 查询用户列表
     * @param user
     * @return
     */
    public List<SysUser> getListByProperty(SysUser user);
}